<html>
<head><meta charset="utf-8"><title>Study of io::Error · project-error-handling · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/index.html">project-error-handling</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html">Study of io::Error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213371707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213371707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> DPC <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213371707">(Oct 15 2020 at 01:47)</a>:</h4>
<p>Interesting article that might be relevant to our group:<a href="https://matklad.github.io/2020/10/15/study-of-std-io-error.html">https://matklad.github.io/2020/10/15/study-of-std-io-error.html</a></p>



<a name="213426624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213426624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213426624">(Oct 15 2020 at 13:41)</a>:</h4>
<p>"error kitchensinkosis" <span aria-label="joy" class="emoji emoji-1f602" role="img" title="joy">:joy:</span></p>



<a name="213885471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213885471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213885471">(Oct 20 2020 at 07:58)</a>:</h4>
<p>Nice article, it is quite interesting how intricate the design of such types is:</p>
<ul>
<li>monomorphization done by hand to reduce compile time generated code</li>
</ul>



<a name="213885587"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213885587" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213885587">(Oct 20 2020 at 07:59)</a>:</h4>
<p>it is mentioned that the size of <code>std::io::Error</code> can be fixed, is there any movement happening concerning it? Or is it not our concern</p>



<a name="213885707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213885707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213885707">(Oct 20 2020 at 08:00)</a>:</h4>
<p>I am quite confused by the proposition:</p>
<div class="codehilite"><pre><span></span><code>Second, we can make use of the fact that pointers are aligned, and stash both Os and Simple variants into usize with the least significant bit set.
I think we can even get creative and use the second least significant bit, leaving the first one as a niche. That way, even something like io::Result&lt;i32&gt; can be pointer-sized!
</code></pre></div>



<a name="213885901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213885901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213885901">(Oct 20 2020 at 08:02)</a>:</h4>
<p>is he proposing some kind of <code>union</code>'ing?</p>



<a name="213885922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213885922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213885922">(Oct 20 2020 at 08:02)</a>:</h4>
<p>And yeah, I know I may be late to party with my replies <span aria-label="happy" class="emoji emoji-1f600" role="img" title="happy">:happy:</span></p>



<a name="213936864"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213936864" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213936864">(Oct 20 2020 at 15:34)</a>:</h4>
<p>what is confusing you?</p>



<a name="213940505"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213940505" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213940505">(Oct 20 2020 at 16:01)</a>:</h4>
<p><span class="user-mention silent" data-user-id="344196">Jakub Duchniewicz</span> <a href="#narrow/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError/near/213885471">said</a>:</p>
<blockquote>
<p>Nice article, it is quite interesting how intricate the design of such types is:</p>
<ul>
<li>monomorphization done by hand to reduce compile time generated code</li>
</ul>
</blockquote>
<p><a href="https://github.com/rust-lang/rust/issues/77960">https://github.com/rust-lang/rust/issues/77960</a></p>



<a name="213949701"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/Study%20of%20io%3A%3AError/near/213949701" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jakub Duchniewicz <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError.html#213949701">(Oct 20 2020 at 17:10)</a>:</h4>
<p><span class="user-mention silent" data-user-id="281739">oliver</span> <a href="#narrow/stream/257204-project-error-handling/topic/Study.20of.20io.3A.3AError/near/213936864">said</a>:</p>
<blockquote>
<p>what is confusing you?</p>
</blockquote>
<p>this particular bit fiddling with LSB and second LSB</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>